package com.htu.model.impl;

import com.htu.domain.Goods;
import com.htu.model.IGoodsModel;
import com.htu.service.IGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class GoodsModelImpl implements IGoodsModel
{
    @Autowired
    private IGoodsService service;

    @Override
    public boolean doGoodsInsert(Goods goods)
    {
        return service.doGoodsInsert(goods);
    }

    @Override
    public List<Goods> doGoodsMegs()
    {
        return service.doGoodsMegs();
    }

    @Override
    public List<Goods> doGoodsMan(int type)
    {
        return service.doGoodsMan(type);
    }

    @Override
    public List<Goods> doGoodsWoman(int type)
    {
        return service.doGoodsWoman(type);
    }

    @Override
    public boolean doGoodsDelete(int id)
    {
        return service.doGoodsDelete(id);
    }

    @Override
    public boolean doGoodInsert(Goods goods)
    {
        return service.doGoodInsert(goods);
    }
}
